﻿using Dal;
using Model;

namespace BLL
{
    public class LoginBll
    {
        public LoginBll(LoginDal dal)
        {
            Dal = dal;
        }

        public LoginDal Dal { get; }

        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="Name">用户名</param>
        /// <param name="Pwd">添加</param>
        /// <returns></returns>
        public Login GetLogin(string Name, string Pwd)
        {
            Login info = Dal.GetLogin(Name, Pwd);   
            return info;
        }
    }
}